Carbon


SetFractEnable

Header: Fonts.h Carbon status: Supported

Enables or disables fractional glyph widths.

void SetFractEnable (
    Boolean fractEnable
);
Parameter descriptions
fractEnable

Specifies whether fractional widths or integer widths are to be used to determine glyph measurements. A value of TRUE indicates fractional glyph widths; a value of FALSE indicates integer glyph widths.

The SetFractEnable function assigns the value that you specify in the fractEnable parameter to the global variable FractEnable.

DISCUSSION

The SetFractEnable function establishes whether or not the Font Manager provides fractional glyph widths to QuickDraw, which then uses them for advancing the pen during text drawing.

The Font Manager defaults to integer widths to ensure compatibility with existing applications. When fractional glyph widths are enabled, the Font Manager can determine the locations of glyphs more accurately than is possible with integer widths.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)